//
//  CartoonUpdateData.m
//  IMYWebView
//
//  Created by Gollum on 16/09/24
//  Copyright (c) IMY. All rights reserved.
//

#import "CartoonUpdateData.h"
#import "CartoonUpdateDetailData.h"

@implementation CartoonUpdateData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonUpdateDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray <CartoonUpdateDetailData *>*dataArray = [NSMutableArray array];
    NSArray *array = value;
    if ([key isEqualToString:@"data"]) {
        
        for (NSDictionary *dic in array) {
            CartoonUpdateDetailData *data = [CartoonUpdateDetailData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
    
}

@end
